<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>听课</title>

 	<link href="${ctx}/static/ligerui/lib/ligerUI/skins/Aqua/css/ligerui-dialog.css" rel="stylesheet" type="text/css"/>
    <script src="${ctx }/static/ligerui/lib/jquery/jquery-1.5.2.min.js" type="text/javascript"></script>
    <script src="${ctx }/static/ligerui/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="${ctx }/static/ligerui/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="${ctx }/static/ligerui/lib/ligerUI/js/plugins/ligerWindow.js" type="text/javascript"></script>
    
		<script language="Javascript" type="text/javascript">;
		
			$(document).ready(function(){
				 OnConnect();
			});
			
			function OnConnect() {
				window.ViewerX.Disconnect();
				window.ViewerX.HostIP = $("#ip").val();
				window.ViewerX.Port = $("#port").val();
				window.ViewerX.Password=$("#pwd").val();
				window.ViewerX.Connect();
			}
		</script>
</head>
<!-- <body onload="OnConnect();"> -->
<body>
		<div style="width: 100%">
			<input type="hidden" id="ip" value="${vm.ip }"/>
			<input type="hidden" id="port" value="${vm.port}"/>
			<input type="hidden" id="pwd" value="${vm.pwd}"/>
		</div>
		<p>
			<OBJECT classid= "CLSID:5220CB21-C88D-11CF-B347-00AA00A28331" VIEWASTEXT>
				<PARAM NAME="LPKPath" VALUE="${ctx}/static/vnc/scvncctrl.lpk" />
			</OBJECT>
			<OBJECT id="ViewerX" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid"
				height="900px" width="100%" classid="CLSID:62FA83F7-20EC-4D62-AC86-BAB705EE1CCD" VIEWASTEXT codebase="${ctx}/static/vnc/scvncctrl.cab#version=3,5,4,0">
				<PARAM NAME="HostIP" VALUE="">
				<PARAM NAME="Port" VALUE="">
				<PARAM NAME="Password" VALUE="">
				<PARAM NAME="CustomCompression" VALUE="0">
				<PARAM NAME="CustomCompressionLevel" VALUE="6">
				<PARAM NAME="JPEGCompression" VALUE="1">
				<PARAM NAME="JPEGCompressionLevel" VALUE="6">
				<PARAM NAME="CopyRect" VALUE="1">
				<PARAM NAME="EmulateThreeButton" VALUE="0">
				<PARAM NAME="SwapMouseButtons" VALUE="0">
				<PARAM NAME="Encoding" VALUE="7">
				<PARAM NAME="ViewOnly" VALUE="1">
				<PARAM NAME="RestrictPixel" VALUE="0">
				<PARAM NAME="ScaleNum" VALUE="1">
				<PARAM NAME="ScaleDen" VALUE="1">
				<PARAM NAME="ScaleEnable" VALUE="0">
				<PARAM NAME="FullScreen" VALUE="0">
				<PARAM NAME="LocalCursor" VALUE="0">
				<PARAM NAME="MessageBoxes" VALUE="1">
				<PARAM NAME="DisableClipboard" VALUE="1">
				<PARAM NAME="ThumbnailMode" VALUE="0">
				<PARAM NAME="LoginType" VALUE="0">
				<PARAM NAME="MsUser" VALUE="">
				<PARAM NAME="MsDomain" VALUE="">
				<PARAM NAME="MsPassword" VALUE="">
				<PARAM NAME="ProxyIP" VALUE="">
				<PARAM NAME="ProxyPort" VALUE="-1">
				<PARAM NAME="ProxyUser" VALUE="">
				<PARAM NAME="ProxyPassword" VALUE="">
				<PARAM NAME="ProxyType" VALUE="0">
				<PARAM NAME="ConnectionBar" VALUE="1">
				<PARAM NAME="StretchMode" VALUE="0">
				
				
				<param name="RemoteInputEnabled" value="0">
			</OBJECT>
		</p>
</body>
</html>